# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=terminator
pkgver=2.1.3
pkgrel=1
pkgdesc="Terminal emulator that supports tabs and grids"
url="https://github.com/gnome-terminator/terminator"
arch="noarch"
license="GPL-2.0"
depends="
	dbus-glib
	gettext
	gsettings-desktop-schemas
	intltool
	keybinder3
	py3-cairo
	py3-configobj
	py3-dbus
	py3-gobject3
	py3-psutil
	python3
	vte3
	xdg-utils
	"
makedepends="
	py3-pytest-runner
	py3-setuptools
	python3-dev
	"
checkdepends="py3-pytest libnotify xvfb-run"
subpackages="$pkgname-doc $pkgname-lang $pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gnome-terminator/terminator/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	xvfb-run python3 -m pytest -k 'not test_keybinding_edit_produce_expected_accels'
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	rm -f "$pkgdir/usr/share/icons/hicolor/icon-theme.cache"
}

sha512sums="
5dd4f639d2479195bc08d088e85509fe3505f14bbfbb8463363bd40da1f58086e82d5d0dd770ee09282a2e7ab52f481ccda0247912e8ff1a1c5db1bbaaeef100  terminator-2.1.3.tar.gz
"
